package buaa.com.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import java.util.List;

/**
 * Created by Administrator on 2016/4/26.
 */
public class SelectAdapter extends BaseAdapter {
    private Context cxt;
    private List<View> allView;

    public SelectAdapter(Context cxt, List<View> allView) {
        this.cxt = cxt;
        this.allView = allView;
    }

    @Override
    public int getCount() {
        return allView.size();
    }

    @Override
    public Object getItem(int position) {
        return allView.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        return allView.get(position);
    }
}
